package com.yswee.framework.net.rbd;

import com.yswee.framework.net.ITask;

public class RBDFactory {

    private static final byte[] mLock = new byte[0];
	private static RBDFactory mInstance = null;
	public final static RBDFactory get() {
        synchronized (mLock) {
            if (mInstance == null) {
                mInstance = new RBDFactory();
            }
            return mInstance;
        }
    }
	
    private RBDFactory() {
    }
    
	/**
	 * 创建断点续传任务
	 * @param entity
	 * @param listener
	 * @return
	 */
	public ITask createRBD(RBDEntity entity, RBDCallback listener) {
		Task httptask = new Task(entity, listener);
		return httptask;
	}
}
